package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年09月30日 20时22分10秒
 */
@Table(name = "e_book_chapter")
public class EBookChapter extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_TITLE = "title";
	public static final String FIELD_CONTENT = "content";
	public static final String FIELD_EXTRA = "extra";
	public static final String FIELD_CREATEUSER = "createUser";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_UPDATETIME = "updateTime";
	public static final String FIELD_SORT = "sort";
	public static final String FIELD_BOOKID = "bookId";
	public static final String FIELD_STATUS = "status";

	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_TITLE = "title";
	public static final String COLUMN_CONTENT = "content";
	public static final String COLUMN_EXTRA = "extra";
	public static final String COLUMN_CREATE_USER = "create_user";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_UPDATE_TIME = "update_time";
	public static final String COLUMN_SORT = "sort";
	public static final String COLUMN_BOOK_ID = "book_id";
	public static final String COLUMN_STATUS = "status";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "title")
	private String title;
	@Column(name = "content")
	private String content;
	@Column(name = "extra")
	private String extra;
	@Column(name = "create_user")
	private Long createUser;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;
	@Column(name = "sort")
	private Double sort;
	@Column(name = "book_id")
	private Long bookId;
	@Column(name = "status")
	private Short status;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 章节名称
	 * 
	 * @return title - 章节名称
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * 设置 章节名称
	 * 
	 * @param title
	 *            - 章节名称
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * 获取 章节内容
	 * 
	 * @return content - 章节内容
	 */
	public String getContent() {
		return content;
	}

	/**
	 * 设置 章节内容
	 * 
	 * @param content
	 *            - 章节内容
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * 获取 额外信息
	 * 
	 * @return extra - 额外信息
	 */
	public String getExtra() {
		return extra;
	}

	/**
	 * 设置 额外信息
	 * 
	 * @param extra
	 *            - 额外信息
	 */
	public void setExtra(String extra) {
		this.extra = extra;
	}

	/**
	 * 获取 创建者
	 * 
	 * @return createUser - 创建者
	 */
	public Long getCreateUser() {
		return createUser;
	}

	/**
	 * 设置 创建者
	 * 
	 * @param createUser
	 *            - 创建者
	 */
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取 更新时间
	 * 
	 * @return updateTime - 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 设置 更新时间
	 * 
	 * @param updateTime
	 *            - 更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * 获取 排序
	 * 
	 * @return sort - 排序
	 */
	public Double getSort() {
		return sort;
	}

	/**
	 * 设置 排序
	 * 
	 * @param sort
	 *            - 排序
	 */
	public void setSort(Double sort) {
		this.sort = sort;
	}

	/**
	 * 获取 书籍id
	 * 
	 * @return bookId - 书籍id
	 */
	public Long getBookId() {
		return bookId;
	}

	/**
	 * 设置 书籍id
	 * 
	 * @param bookId
	 *            - 书籍id
	 */
	public void setBookId(Long bookId) {
		this.bookId = bookId;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}
}